package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import cn.e4j.core.util.DateUtils;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.time.LocalDate;
import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuhuan
 * @since 2019-01-10
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWAO_T")
public class GwaoT extends PO<GwaoT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWAOENT", type = IdType.INPUT)
    private String GWAOENT;
    private String GWAO001;
    private String GWAO002;
    private String GWAO003;
    private String GWAOACTI;
    @TableField(fill = FieldFill.INSERT)
    private String GWAOUSER;
    @TableField(fill = FieldFill.INSERT)
    private String GWAOGRUP;
    @TableField(fill = FieldFill.UPDATE)
    private String GWAOMODU;
    @TableField(fill = FieldFill.INSERT)
    private String GWAOTIME;
    @DateTimeFormat(pattern = DateUtils.PATTERN_yyyy_MM_dd)
    @TableField(fill = FieldFill.INSERT)
    private LocalDate GWAODATE;
    @TableField(fill = FieldFill.INSERT)
    private String GWAOORIG;
    @TableField(fill = FieldFill.INSERT)
    private String GWAOORIU;


    @Override
    protected Serializable pkVal() {
        return this.GWAOENT;
    }

}
